# $Id: PKGBUILD 88520 2013-04-19 10:31:06Z spupykin $
# Contributor: Bartek Iwaniec <hash87 [at] gmail [dot] com>

pkgname=librtfcomp
pkgver=1.2
pkgrel=1
pkgdesc="SynCE librtfcomp library"
arch=(i686 x86_64)
license=('GPL')
url="http://www.synce.org/"
depends=(pyrex)
source=(http://downloads.sourceforge.net/synce/${pkgname}-${pkgver}.tar.gz)
md5sums=('cdff301ff346905595d0bb6efd432850')

build() {
  cd ${srcdir}/${pkgname}-${pkgver}
  ./configure --prefix=/usr
  make
}

package() {
  cd ${srcdir}/${pkgname}-${pkgver}
  make DESTDIR="${pkgdir}" install
  install -dm0755 $pkgdir/usr/bin
  install -m0755 tests/{to,from}rtf $pkgdir/usr/bin
}
